package com.sirg.config;/** * @Author: Sir-G * @Autograph: 安稳 * @Description: //TODO 这个枚举表示API的自定义响应代码和消息。 * @Date: 2022-11-03 02:01:09 */public enum ResultCodeEnum {    SUCCESS(200, "成功"),    BAD_REQUEST(400, "错误的请求"),    UNAUTHORIZED(401, "未授权"),    FORBIDDEN(403, "禁止访问"),    NOT_FOUND(404, "未找到"),    INVALID_TOKEN(1000, "无效的Token"),    EXPIRED_TOKEN(1001, "Token已过期"),    INCONSISTENT_TOKEN_ALGORITHM(1002, "Token算法不一致"),    INVALIDATED_TOKEN(1003, "Token失效"),    INTERNAL_SERVER_ERROR(500, "服务器内部错误");    private int code;    private String msg;    ResultCodeEnum(int code, String msg) {        this.code = code;        this.msg = msg;    }    public int getCode() {        return code;    }    public String getMsg() {        return msg;    }}